<!-- Site header and navigation -->
<div class="top  navbar-fixed-top">
  <div class="container">
    <a href="#" class="navbar-brand pull-left">
      隐患排查
    </a>
    <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
      <span class="glyphicon glyphicon-align-justify"></span>
    </button>
    <nav class="navbar-collapse collapse" role="navigation">
      <ul class="navbar-nav nav">
        <li><a href="#/">首页工作提醒</a></li>
        <li><a href="#/qiyeyinhuanByid">隐患核查复查</a></li>
      </ul>
      <!--<form class="navbar-form navbar-left" role="search" style="padding-top: 5px">-->
      <!--<div class="form-group">-->
      <!--<input type="text" class="form-control input-sm" placeholder="搜索你感兴趣的事情">-->
      <!--</div>-->
      <!--<button type="submit" class="btn btn-sm">搜索</button>-->
      <!--</form>-->
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#/logout">退出</a></li>
      </ul>
    </nav>
  </div>
</div>
<div class="container">

  <div class="row" >
    <div class="col-xs-12 col-md-12">
      <div style="text-align: center">
        <div class="btn-group">
          <button type="button" class="btn btn-default" ng-click="toAddYinhuan()">增加隐患</button>
          <button type="button" class="btn btn-default" ng-click="baoPinan()">报平安</button>
        </div>
      </div>

      <qiye-yinhuanlist-x ng-model="items" on-load="loadHandler()" on-select="clickHandler(item)"  load-url="yhUrl | toUrlString">
        <qiyeyinhuanitem-template><a href="#{{item.yhfj==0?'/yinhuan/':'/yinhuan/big/'}}{{item.id}}" class="list-x-item">
                <span class="main-text" style="margin: 0"><strong>{{ item.yhms | subYhms}}{{ item.hiddenDdangerRec.yhms | subYhms}}</strong>
                    <div class="btn-group pull-right" dropdown>
                      <button type="button" class="btn btn-sm btn-info">编辑查看</button>
                      <button type="button"  class="btn btn-sm btn-info dropdown-toggle" dropdown-toggle>
                        <span class="caret"></span>
                        <span class="sr-only">查看</span>
                      </button>
                      <ul class="dropdown-menu" role="menu">
                        <li><a href="#{{item.yhfj==0?'/editYinhuan/'+item.id:'/editYinhuan/'+item.hiddenDdangerRec.id}}">编辑</a></li>
                        <li><a href="#" ng-show="item.bdzt == 0">上报</a></li>
                      </ul>
                    </div>
                </span>
          <div class="text-muted desc"><small style="padding-left: 50px;">
            {{ item.zgzt | getYinhuangZgztByCode }}{{ item.hiddenDdangerRec.zgzt | getYinhuangZgztByCode }},
            {{ item.hczt | getYinhuangHcztByCode }}{{ item.hiddenDdangerRec.hczt | getYinhuangHcztByCode }},
            {{ item.fczt | getYinhuangFcztByCode }}{{ item.hiddenDdangerRec.fczt | getYinhuangFcztByCode }}</small>

          </div>
          <div class="clearfix"></div></a></qiyeyinhuanitem-template>
      </qiye-yinhuanlist-x>
      <div class="center" id="loadingAjaxYihuan">
        <img src="images/ajax-loader.gif" alt=""/>加载中...
      </div>
      <nav>
        <ul class="pager">
          <li class="previous btn-sm" ng-show="!first"><a  ng-click="prePage()">&larr; 上一页</a></li>
          <li class="next btn-sm"ng-show="!last"><a  ng-click="nextPage()">下一页 &rarr;</a></li>
        </ul>
      </nav>
    </div>
  </div>


</div>
